import request from '@/utils/request'
import cookie from "js-cookie";

export default {
  getPageList(page, limit, searchObj) {
    return request({
      url: `/services_video/content/getContentPageQuery/${page}/${limit}`,
      method: 'post',
      data: searchObj
    })
  },
  //查询所有分类的方法
  getAllCategory() {
    return request({
      url: '/services_video/category/getAllCategory',
      method: 'get'
    })
  },
  //根据作品id获取作品详情信息
  geContentDetailById(contentId,app) {
    var token = app.$cookies.get("login_token");
    if (!token){
      token = "";
    }
    return request({
      url: `/services_video/content/getContentDeatail/${contentId}`,
      method: 'get',
      headers: {
        'token': token
      }
    })
  }
}



